<template>
    <div class="btns">
        <el-button type="primary" @click="backTop">返回首页</el-button>
    </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';
const router = useRouter();
    const backTop = ()=>{
        router.push({path:'/'})
    }
</script>

<style scoped>
    .btns{
        display: flex;
        width: 100vw;
        position: fixed;
        bottom: 0;
        left: 0;
        height: 10vh;
        justify-content: center;
        align-items: center;
    }
</style>